package com.learm.service.impl;

import com.mapper.DeptDao;
import com.model.Dept;
import com.learm.service.IDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("deptService")
public class DeptServiceImpl implements IDeptService {

    //注入dao对象
    @Autowired
    private DeptDao deptDao;

    @Override
    public List<Dept> findall() {

        List<Dept> all = deptDao.findAll();
        return all;
    }
}
